/*************************************************************************
	> File Name: paper.h
	> Author: ma6174
	> Mail: ma6174@163.com 
	> Created Time: 2021年11月25日 星期四 21时39分00秒
 ************************************************************************/

#include<iostream>
#include <string>

class TestPaper
{
public:
	void print1()
	{
		std::cout << "问题１：答案为：" + answer1() << std::endl;
	}

	virtual std::string answer1() = 0;

	void print2()
	{
		std::cout << "问题２：答案为：" + answer2() << std::endl;
	}

	virtual std::string answer2() = 0;

	void print3()
	{
		std::cout << "问题３：答案为：" + answer3() << std::endl;
	}

	virtual std::string answer3() = 0;
};


class TestPaper1 : public TestPaper
{
public:
	virtual std::string answer1()
	{
		return "1-1";
	}

	virtual std::string answer2()
	{
		return "1-2";
	}

	virtual std::string answer3()
	{
		return "1-3";
	}
};

class TestPaper2 : public TestPaper
{
public:
	virtual std::string answer1()
	{
		return "2-1";
	}

	virtual std::string answer2()
	{
		return "2-2";
	}

	virtual std::string answer3()
	{
		return "2-3";
	}
};
